<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
String examinationReportsInfoJson= (String)request.getAttribute("examinationReportsInfoJson");
%>
<link rel="stylesheet" href="${basePath}assets/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="${basePath}assets/jquery-ui/jquery-ui.css"/>
<link rel="stylesheet" href="${basePath}assets/css/basic.css"/>
<link rel="stylesheet" href="${basePath}assets/css/medical_record/home_page.css"/>
<script type="text/javascript" src="${basePath}assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${basePath}assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="${basePath}assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}assets/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${basePath}assets/js/medical_record/edit_examination_reports_info.js"></script>
<form action="${basePath }medical_record/edit_home_page_examination_reports" method="post" style="width: 100%">
	<input type="hidden" name="visitGuid" value="${visitGuid }">
	<input type="hidden" id="examinationReportRecordCount" value="0"/>
	
	
	<table style="width:100%;" cellspacing="0" cellpadding="0">
		<tbody>
			<tr style="display:none">
				<td align="left" colspan="6" class="dark">
					<div style="float:right">
						<input type="button" value="删除" class="btn"
					onclick="deleteExaminationReportRecord()">
						<input type="button" value="新增" onclick="addExaminationReportRecord()"
					class="btn">
						<input type="submit" value="保存" class="btn">&nbsp;
					</div></td>
			</tr>
		</tbody>
	</table>
	<div class="bg_danlanColor">
		<ul class="bg_danlanColor margin0 clearfix" id="examination_report_ul">

		</ul>
	</div>
	<div class="content" style="height:705px;overflow-y:auto;overflow-x:hidden;" id="examinationReportRecords" >
	</div>
	
</form>
<div hidden="true">
	<ul id="template_examination_report_ul">
		<li data-index="0">记录1</li>
	</ul>
	
	<div id="templateExaminationReportRecord" >
		<table style="width:100%;" cellspacing="0" cellpadding="0">
			<thead>
				<tr>
					<td align="left" class="tdLabel_7">标题</td>
					<td class="tdLabel_8" colspan="5">
						<input type="text" name="examinationReportsRecords[0].title" style="width: 95%">
					</td>
					
				</tr>
				<tr>
					<td align="left" class="tdLabel_7">姓名</td>
					<td class="tdLabel_8">
						<input disabled="disabled" type="text" name="examinationReportsRecords[0].patientName">
					</td>
					<td align="left" class="tdLabel_7">科别</td>
					<td class="tdLabel_8">
						<input disabled="disabled" type="text" name="examinationReportsRecords[0].deptCategoryName">
					</td>
	
					<td align="left" class="tdLabel_7">样品编号</td>
					<td class="tdLabel_8">
						<input disabled="disabled" type="text" name="examinationReportsRecords[0].specimenCode">
					</td>
	
				</tr>
				<tr>
					<td align="left" class="tdLabel_7">性别</td>
					<td class="tdLabel_8">
						<input type="text" disabled="disabled" name="examinationReportsRecords[0].sexName">
					</td>
					<td align="left" class="tdLabel_7">床位</td>
					<td class="tdLabel_8">
						<input disabled="disabled" type="text" name="examinationReportsRecords[0].bedName">
					</td>
					<td align="left" class="tdLabel_7">条码编号</td>
					<td class="tdLabel_8"><input disabled="disabled" type="text" name="examinationReportsRecords[0].barCode">
					</td>
				</tr>
				<tr>
					<td align="left" class="tdLabel_7">年龄</td>
					<td class="tdLabel_8"><input disabled="disabled" type="text" name="examinationReportsRecords[0].ageName">
					</td>
					<td align="left" class="tdLabel_7">费别</td>
					<td class="tdLabel_8">
						<input type="text" disabled="disabled" name="examinationReportsRecords[0].costName">
					</td>
					<td align="left" class="tdLabel_7">标本种类</td>
					<td class="tdLabel_8"><input type="text" name="examinationReportsRecords[0].specimenTypeName">
					</td>
				</tr>
				<tr>
					<td align="left" class="tdLabel_7">识别码</td>
					<td class="tdLabel_8">
						<input type="text" disabled="disabled" name="examinationReportsRecords[0].mrId">
					</td>
					<td align="left" class="tdLabel_7">送检医师</td>
					<td class="tdLabel_8">
						<input type="text" disabled="disabled" name="examinationReportsRecords[0].submittingPhysicianName">
					</td>
					<td align="left" class="tdLabel_7">临床诊断</td>
					<td class="tdLabel_8">
						<input type="text" disabled="disabled" name="examinationReportsRecords[0].clinicalDiagnosisName">
					</td>
				</tr>
			</tbody>
		</table>
		<input type="hidden" id="examinationReportItemCount" value="0"/>
		<table style="width:100%;" cellspacing="0" cellpadding="0" id="examinationReportItems">
			<thead>
				<tr>
					<td colspan="5" class="tdLabel_7" style="display:none">
	
						<div style="float:right">
							<span class="red" id="tsxx" style="display:none"> </span> <input
								type="button" value="新增" onclick="addExaminationReportItem()"
								class="btn">
						</div></td>
				</tr>
				<tr>
					<td class="tdLabel_4" width="30%">项目名称</td>
					<td class="tdLabel_4" width="18%">结果</td>
					<td class="tdLabel_4" width="18%">单位</td>
					<td class="tdLabel_4" width="30%">参考值</td>
					<!-- <td class="tdLabel_4" width="4%">操作</td> -->
				</tr>
			</thead>
			<tbody>
				
			</tbody>
		</table>
		<br/>
		<table style="width:100%;" cellspacing="0" cellpadding="0">
			
			<tbody>
				<tr>
					<td align="left" class="tdLabel_7">采样时间</td>
					<td class="tdLabel_8">
						<input disabled="disabled" type="text" name="examinationReportsRecords[0].samplingDateTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
					</td>
					<td align="left" class="tdLabel_7">送检时间</td>
					<td class="tdLabel_8">
						<input disabled="disabled" type="text" name="examinationReportsRecords[0].inspectDateTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
					</td>
	
					<td align="left" class="tdLabel_7">检验者</td>
					<td class="tdLabel_8">
						<input disabled="disabled" type="text" name="examinationReportsRecords[0].inspectionDoctorName">
					</td>
	
				</tr>
				<tr>
					<td align="left" class="tdLabel_7">核收时间</td>
					<td class="tdLabel_8">
						<input disabled="disabled" type="text" name="examinationReportsRecords[0].acceptanceCheckDateTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
					</td>
					<td align="left" class="tdLabel_7">报告时间</td>
					<td class="tdLabel_8">
						<input disabled="disabled" type="text" name="examinationReportsRecords[0].reportDateTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
					</td>
					<td align="left" class="tdLabel_7">审核者</td>
					<td class="tdLabel_8">
						<input disabled="disabled" type="text" name="examinationReportsRecords[0].auditorDoctorName">
					</td>
				</tr>
				<tr>
					<td align="left" class="tdLabel_7">备注</td>
					<td class="tdLabel_8" colspan="5">
						<input disabled="disabled" type="text" name="examinationReportsRecords[0].remark" style="width: 95%">
					</td>
					
				</tr>
			</tbody>
			<tfoot>
					<tr>
						<td align="left" style="height:80px;" class="tdLabel_8" colspan="9"></td>
					</tr>
					
				</tfoot>
		</table>
	</div>

	<table>
		<tr id="templateExaminationReportItemTr">
			<td class="tdLabel_8">
				<input disabled="disabled" type="text" name="examinationReportsRecords[0].examinationReportsItems[0].projectName" class="input_box">
			</td>
			<td class="tdLabel_8">
				<input disabled="disabled" type="text" name="examinationReportsRecords[0].examinationReportsItems[0].examinationResult" class="input_box">
				<input type="hidden" name="examinationReportsRecords[0].examinationReportsItems[0].examinationResultMark">
				
			</td>
			<td class="tdLabel_8">
				<input disabled="disabled" type="text" name="examinationReportsRecords[0].examinationReportsItems[0].examinationUnit" class="input_box">
			</td>
			<td class="tdLabel_8">
				<input disabled="disabled" type="text" name="examinationReportsRecords[0].examinationReportsItems[0].referenceValues" class="input_box">
			</td>
			<!-- <td class="tdLabel_8">
				<a class="btn" onclick="deleteExaminationReportItem(this)">删除</a>
			</td> -->
			
		</tr>
	</table>
</div>
<script>
	$(function(){
		var examinationReportsInfoJson= <%=examinationReportsInfoJson%>;
		//console.log(examinationReportsInfoJson);
		initPage(examinationReportsInfoJson);
	})
</script>